package com.video.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.video.common.dto.UserDto;
import com.video.entity.User;
import com.video.mapper.UserMapper;
import com.video.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author maomao
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public IPage<UserDto> getApproveUserList(Page<UserDto> userDtoPage, Long approveUserId) {
        return userMapper.getApproveUserList(userDtoPage, approveUserId);
    }
}
